#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>


void Left_rotation_of_string(char* a,int k,int p)
{
	char ex;
	int n;
	for (int i = 0; i < k; ++i)
	{
		n = p - 3;
		ex = a[p - 2];
		while (n+1)
		{
			a[n + 1] = a[n];
			--n;
		}
		a[0] = ex;
	}
}


int main()
{
	int k;
	char a[] = "ABCDEFGHIJKLM";
	scanf("%d", &k);
	int sz = (int)sizeof(a);
	Left_rotation_of_string(a,k,sz);
	for (int i = 0; i < sz - 1; ++i)
	{
		printf("%c", a[i]);
	}
	printf("\n");
	return 0;
}